package com.library.admin.modules.borrowing.struct;

import org.mapstruct.*;
import com.library.admin.modules.borrowing.entity.Borrowing;
import com.library.admin.modules.borrowing.vo.BorrowingVO;
import com.library.admin.modules.borrowing.bo.BorrowingInsert;
import com.library.admin.modules.borrowing.bo.BorrowingUpdate;

/**
 * 借阅记录表(Borrowing)对象映射转换
 *
 * @author xyh
 * @since 2023-11-09
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface BorrowingStructMapper {

    Borrowing updateToBorrowing(BorrowingUpdate update);

    Borrowing insertToBorrowing(BorrowingInsert insert);

    BorrowingVO borrowingToBorrowingVO(Borrowing borrowing);

}

